package com.anyonavinfo.cpaddemo.view.musicplayerview;

import com.anyonavinfo.cpaddemo.BasePresenter;
import com.anyonavinfo.cpaddemo.BaseView;
import com.anyonavinfo.cpaddemo.data.musicinfo.MusicInfo;

import java.util.List;


/**
 * Created by ZuiC on 2017/2/10.
 */

public class MusicPlayerContract {

    interface View extends BaseView<Presenter> {
        void updateMusicInfo(MusicInfo musicInfo);
        void updatePlayMode(int playMode);
        void updatePlayStatus(int playStatus);
        void backToMainView();
        void updateProgress(int curProgress, int percent);
        void initMusicList(List<MusicInfo> musicInfo);
        void updateMusicList(List<MusicInfo> musicInfo);
    }

    interface Presenter extends BasePresenter {
        void playStopCurMusic();
        void playNextMusic();
        void playPreviousMusic();
        void changePlayMode();
        void refreshView();
        void onBackPressed();
        void playSelectedMusic(int selectedPosition);
        void deleteMusic(int position);
        void changePlayProgress(int percent);
        void reloadMusicInfo();
    }
}
